Skip to contentSkip to conversation

testsuite: add new flag '-p' to subcommand 'format'

PATCH New Luc Van Oostenryck 1 participant 1 message Jul 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 testsuite: add new flag '-p' to subcommand 'format'

This flag facilitate the creation of testcases for preprocessing.

---
 validation/test-suite | 4 ++++
 1 file changed, 4 insertions(+)
validation/test-suite +4 -0
index d351ebf3c428..f7d992dc7c8c 100755
@@ -458,6 +458,7 @@ echo "options:"
 echo "    -a                         append the created test to the input file"
 echo "    -f                         write a test known to fail"
 echo "    -l                         write a test for linearized code"
+echo "    -p                         write a test for pre-processing"
 echo
 echo "argument(s):"
 echo "    file                       file containing the test case(s)"
@@ -483,6 +484,9 @@ do_format()
 		-l)
 			def_cmd='test-linearize -Wno-decl $file'
 			linear=1 ;;
+		-p)
+			def_cmd='sparse -E $file' ;;
+
 		help|-*)
 			do_format_help
 			return 0
Signature · 1 line
2.27.0