Commit 35cdc975 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[tests] make generated test file read-only

parent 2cf7f9b4
...@@ -2350,6 +2350,7 @@ tests/spec/preprocess_dos.c: tests/spec/preprocess_dos.c.in \ ...@@ -2350,6 +2350,7 @@ tests/spec/preprocess_dos.c: tests/spec/preprocess_dos.c.in \
$(SED) -e "s|@UNIX2DOS@|$(UNIX2DOS)|g" \ $(SED) -e "s|@UNIX2DOS@|$(UNIX2DOS)|g" \
-e "s|@DONTRUN@||g" \ -e "s|@DONTRUN@||g" \
$< > $@ $< > $@
$(CHMOD_RO) $@
else else
tests/spec/preprocess_dos.c: tests/spec/preprocess_dos.c.in \ tests/spec/preprocess_dos.c: tests/spec/preprocess_dos.c.in \
Makefile share/Makefile.config Makefile share/Makefile.config
...@@ -2357,6 +2358,7 @@ tests/spec/preprocess_dos.c: tests/spec/preprocess_dos.c.in \ ...@@ -2357,6 +2358,7 @@ tests/spec/preprocess_dos.c: tests/spec/preprocess_dos.c.in \
$(SED) -e "s|@DONTRUN@|DONTRUN: no unix2dos found|g" \ $(SED) -e "s|@DONTRUN@|DONTRUN: no unix2dos found|g" \
-e "s|@UNIX2DOS|unix2dos|g" \ -e "s|@UNIX2DOS|unix2dos|g" \
$< > $@ $< > $@
$(CHMOD_RO) $@
endif endif
ptests: bin/ptests.$(OCAMLBEST)$(EXE) $(PTESTS_CONFIG) $(GENERATED_TESTS) ptests: bin/ptests.$(OCAMLBEST)$(EXE) $(PTESTS_CONFIG) $(GENERATED_TESTS)
......
/* run.config* /* run.config*
COMMENT: Don't edit directly preprocess_dos.c, but preprocess_dos.c.in
@DONTRUN@ @DONTRUN@
OPT: -cpp-command="@PTEST_DIR@/@PTEST_NAME@.sh @UNIX2DOS@ %i %o" -cpp-frama-c-compliant -print OPT: -cpp-command="@PTEST_DIR@/@PTEST_NAME@.sh @UNIX2DOS@ %i %o" -cpp-frama-c-compliant -print
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment