From: Kevin M. Rosenberg Date: Mon, 12 Feb 2018 20:17:33 +0000 (-0700) Subject: Cache running examples with .have_run flag file. Add results as make target to show... X-Git-Url: http://git.kpe.io/?p=snark14.git;a=commitdiff_plain;h=4ada89c0093f3a52206de5afa817793c234df5e8 Cache running examples with .have_run flag file. Add results as make target to show all run output --- diff --git a/examples/.gitignore b/examples/.gitignore index 4366f41..58e9c64 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -14,3 +14,4 @@ b9/fomfil.1 b9/testem.1 b11/RPRTsuperiorization b11/RPRTklds +.have_run diff --git a/examples/.more_run_scripts b/examples/.more_run_scripts deleted file mode 100644 index 261455e..0000000 --- a/examples/.more_run_scripts +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -#now need to modify run scripts in examples directory -for i in `seq 1 10`; - do - more b$i/run -done diff --git a/examples/Makefile b/examples/Makefile index cd5793b..a1bfcde 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,15 +1,22 @@ .PHONY: all run_all regression all: - @echo "Use run_all or regression" + @echo "Useful targets: run_all, regression, results" -run_all: - ./run_all +run_all: .have_run -regression: - ./regression +.have_run: + @./run_all + @touch .have_run + +regression: .have_run + @./regression + +results: .have_run + @less */b[0-9].out */b[0-9][0-9].out clean: @rm -f */b[0-9][0-9].out */b1[0-9].out */file11 */prjfil */recfil */eval */src/.o */punch b*/src/*.o */MAPUser1 */snark.lock b*/bin/* @rm -f b11/RPRTsuperiorization b11/RPRTklds b9/snark_e.in b9/snark_e.out b9/testem.1 b9/fomfil.1 + @rm -f .have_run diff --git a/examples/run_all b/examples/run_all index 713c9a7..e4ed0e4 100755 --- a/examples/run_all +++ b/examples/run_all @@ -1,10 +1,10 @@ #!/bin/bash -#now need to modify run scripts in examples directory -echo "Running all ten examples. This may take a few minutes." -for i in 1 3 4 5 6 7 8 10 11; + +echo "Running all examples. This may take a few minutes." +for i in 1 3 4 5 6 7 8 10 11 20; do cd b$i - snark14 b"$i".in > b"$i".out + snark14 b${i}.in > b${i}.out cd .. done