Skip to content

Commit 3752a13

Browse files
committed
[arcane:tests] Add a test for CaseOptionExtended and the help option
1 parent 0234f5c commit 3752a13

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

arcane/src/arcane/tests/CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ ARCANE_ADD_TEST_SEQUENTIAL(partial-variable-seq testPartialVariable-seq.arc)
328328
if(PARTITIONER_FOUND)
329329
ARCANE_ADD_TEST_PARALLEL(partial-variable testPartialVariable.arc 4)
330330
endif()
331+
332+
arcane_add_test_sequential(display_help testCaseOptions-specific-entry-point.arc "-h")
333+
331334
ARCANE_ADD_TEST_SEQUENTIAL(caseoptions testCaseOptions-1.arc)
332335
arcane_add_test_sequential(caseoptions_specificentrypoint testCaseOptions-specific-entry-point.arc
333336
"-We,ARCANE_CALL_SPECIFIC_ENTRY_POINT,CaseOptionLoop2")
@@ -427,6 +430,13 @@ arcane_add_test_sequential(caseoptions_commandlinereplace_fail8 testCaseOptions-
427430
)
428431
set_property(TEST caseoptions_commandlinereplace_fail8 PROPERTY WILL_FAIL true)
429432

433+
arcane_add_test_sequential(caseoptions_commandlinereplace_fail9 testCaseOptions-specific-entry-point.arc
434+
"-We,ARCANE_CALL_SPECIFIC_ENTRY_POINT,CaseOptionLoop2"
435+
"-We,ARCANE_REPLACE_SYMBOLS_IN_DATASET,1"
436+
"-A,//case-options-tester/complex2[2]/complex3/extended-real-int-c3[9]=enum1"
437+
)
438+
set_property(TEST caseoptions_commandlinereplace_fail9 PROPERTY WILL_FAIL true)
439+
430440
#arcane_add_test_sequential(caseoptions_commandlinereplace_fail99 testCaseOptions-specific-entry-point.arc
431441
# "-We,ARCANE_CALL_SPECIFIC_ENTRY_POINT,CaseOptionLoop2"
432442
# "-We,ARCANE_REPLACE_SYMBOLS_IN_DATASET,1"

arcane/src/arcane/tests/CaseOptionsTester.axl

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
name = "extended-real-int-c3"
623623
type = "ArcaneTest::TestRealInt"
624624
minOccurs = "0"
625-
maxOccurs = "unbounded"
625+
maxOccurs = "5"
626626
>
627627
<description>ExtendedRealInt2</description>
628628
</extended>

arcane/tests/testCaseOptions-commandLineReplace.arc

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
<simple-real3-2>3.0 2.0 4.0</simple-real3-2>
6868
<simple-integer-2>4</simple-integer-2>
6969
<simple-enum-2>enum2</simple-enum-2>
70-
<extended-real-int-2>enum1</extended-real-int-2>
7170
<complex1-sub>
7271
<sub-test1>2.0 3.0</sub-test1>
7372
<sub-test2>1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0</sub-test2>

0 commit comments

Comments
 (0)