Skip to content

Commit

Permalink
fix(test-*.bat): refine batch file commands (#128)
Browse files Browse the repository at this point in the history
Prevent command display on STDOUT.
  • Loading branch information
ajborla authored Jul 24, 2024
1 parent 47e7df4 commit ed35023
Show file tree
Hide file tree
Showing 65 changed files with 130 additions and 130 deletions.
4 changes: 2 additions & 2 deletions exercises/practice/accumulate/test-accumulate.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\accumulate-check ..\accumulate ..\accumulate-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/acronym/test-acronym.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\acronym-check ..\acronym ..\acronym-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/all-your-base/test-all-your-base.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\all-your-base-check ..\all-your-base ..\all-your-base-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/anagram/test-anagram.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\anagram-check ..\anagram ..\anagram-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\armstrong-numbers-check ..\armstrong-numbers ..\armstrong-numbers-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/atbash-cipher/test-atbash-cipher.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\atbash-cipher-check ..\atbash-cipher ..\atbash-cipher-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/bank-account/test-bank-account.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\bank-account-check ..\bank-account ..\bank-account-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/beer-song/test-beer-song.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\beer-song-check ..\beer-song ..\beer-song-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/binary-search/test-binary-search.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\binary-search-check ..\binary-search ..\binary-search-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/bob/test-bob.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\bob-check ..\bob ..\bob-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/clock/test-clock.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\clock-check ..\clock ..\clock-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\collatz-conjecture-check ..\collatz-conjecture ..\collatz-conjecture-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/custom-set/test-custom-set.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\custom-set-check ..\custom-set ..\custom-set-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/darts/test-darts.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\darts-check ..\darts ..\darts-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\difference-of-squares-check ..\difference-of-squares ..\difference-of-squares-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/error-handling/test-error-handling.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\error-handling-check ..\error-handling ..\error-handling-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/etl/test-etl.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\etl-check ..\etl ..\etl-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/gigasecond/test-gigasecond.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\gigasecond-check ..\gigasecond ..\gigasecond-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/grade-school/test-grade-school.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\grade-school-check ..\grade-school ..\grade-school-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/grains/test-grains.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\grains-check ..\grains ..\grains-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/hamming/test-hamming.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\hamming-check ..\hamming ..\hamming-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/hello-world/test-hello-world.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\hello-world-check ..\hello-world ..\hello-world-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/high-scores/test-high-scores.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\high-scores-check ..\high-scores ..\high-scores-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/house/test-house.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\house-check ..\house ..\house-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/isbn-verifier/test-isbn-verifier.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\isbn-verifier-check ..\isbn-verifier ..\isbn-verifier-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/isogram/test-isogram.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\isogram-check ..\isogram ..\isogram-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/leap/test-leap.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\leap-check ..\leap ..\leap-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/list-ops/test-list-ops.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\list-ops-check ..\list-ops ..\list-ops-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/luhn/test-luhn.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\luhn-check ..\luhn ..\luhn-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\matching-brackets-check ..\matching-brackets ..\matching-brackets-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/matrix/test-matrix.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\matrix-check ..\matrix ..\matrix-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/nth-prime/test-nth-prime.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\nth-prime-check ..\nth-prime ..\nth-prime-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/nucleotide-count/test-nucleotide-count.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\nucleotide-count-check ..\nucleotide-count ..\nucleotide-count-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/ocr-numbers/test-ocr-numbers.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\ocr-numbers-check ..\ocr-numbers ..\ocr-numbers-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/pangram/test-pangram.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\pangram-check ..\pangram ..\pangram-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/perfect-numbers/test-perfect-numbers.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\perfect-numbers-check ..\perfect-numbers ..\perfect-numbers-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/phone-number/test-phone-number.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\phone-number-check ..\phone-number ..\phone-number-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/prime-factors/test-prime-factors.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\prime-factors-check ..\prime-factors ..\prime-factors-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\protein-translation-check ..\protein-translation ..\protein-translation-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/proverb/test-proverb.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\proverb-check ..\proverb ..\proverb-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/queen-attack/test-queen-attack.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\queen-attack-check ..\queen-attack ..\queen-attack-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/raindrops/test-raindrops.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\raindrops-check ..\raindrops ..\raindrops-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\resistor-color-duo-check ..\resistor-color-duo ..\resistor-color-duo-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\resistor-color-trio-check ..\resistor-color-trio ..\resistor-color-trio-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/resistor-color/test-resistor-color.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\resistor-color-check ..\resistor-color ..\resistor-color-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/reverse-string/test-reverse-string.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\reverse-string-check ..\reverse-string ..\reverse-string-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\rna-transcription-check ..\rna-transcription ..\rna-transcription-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/roman-numerals/test-roman-numerals.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\roman-numerals-check ..\roman-numerals ..\roman-numerals-toplevel
cd ..
@cd ..
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\rotational-cipher-check ..\rotational-cipher ..\rotational-cipher-toplevel
cd ..
@cd ..
4 changes: 2 additions & 2 deletions exercises/practice/saddle-points/test-saddle-points.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@set options=%*
@if "%1"=="" @set options=--regina
cd "testlib"
@cd "testlib"
@call runt.bat %options% ..\saddle-points-check ..\saddle-points ..\saddle-points-toplevel
cd ..
@cd ..
Loading

0 comments on commit ed35023

Please sign in to comment.