diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-29 23:02:49 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-29 23:02:49 +0000 |
commit | ddeadb135e846cd3fb1f374160b944fd28ce729e (patch) | |
tree | babd42aee3090c5382a5ff2db526ba17af33d6d7 /.github/workflows | |
parent | makefile_escaping: rename *.mk files (diff) | |
download | blog-ddeadb135e846cd3fb1f374160b944fd28ce729e.tar.gz blog-ddeadb135e846cd3fb1f374160b944fd28ce729e.zip |
makefile_escaping: add prologue to all *.mk files
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/makefile-escaping.yml | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/.github/workflows/makefile-escaping.yml b/.github/workflows/makefile-escaping.yml index ffce441..0a3c120 100644 --- a/.github/workflows/makefile-escaping.yml +++ b/.github/workflows/makefile-escaping.yml @@ -9,15 +9,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Make Makefile - run: | - cd makefile_escaping - cp prologue.mk Makefile - cat quoting_args.mk >> Makefile - name: make test run: | cd makefile_escaping - diff <( echo "$expected" ) <( make test ) + diff <( echo "$expected" ) <( make -f quoting_args.mk test ) env: expected: |- printf '%s\n' Same line? @@ -36,15 +31,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Make Makefile - run: | - cd makefile_escaping - cp prologue.mk Makefile - cat escaping_quotes.mk >> Makefile - name: make test run: | cd makefile_escaping - diff <( echo "$expected" ) <( make test ) + diff <( echo "$expected" ) <( make -f escaping_quotes.mk test ) env: expected: |- printf '%s\n' 'Includes '\'' quote' @@ -59,17 +49,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Make Makefile - run: | - cd makefile_escaping - cp prologue.mk Makefile - cat escaping_shell.mk >> Makefile - name: make test run: | cd makefile_escaping - diff <( echo "$expected_includes_quote" ) <( mkdir -p -- "Includes ' quote" && cd -- "Includes ' quote" && make -f ../Makefile test ) - diff <( echo "$expected_maybe_comment" ) <( mkdir -p -- 'Maybe a comment #' && cd -- 'Maybe a comment #' && make -f ../Makefile test ) - diff <( echo "$expected_variable_reference" ) <( mkdir -p -- 'Variable ${reference}' && cd -- 'Variable ${reference}' && make -f ../Makefile test ) + diff <( echo "$expected_includes_quote" ) <( mkdir -p -- "Includes ' quote" && cd -- "Includes ' quote" && make -f ../escaping_shell.mk test ) + diff <( echo "$expected_maybe_comment" ) <( mkdir -p -- 'Maybe a comment #' && cd -- 'Maybe a comment #' && make -f ../escaping_shell.mk test ) + diff <( echo "$expected_variable_reference" ) <( mkdir -p -- 'Variable ${reference}' && cd -- 'Variable ${reference}' && make -f ../escaping_shell.mk test ) env: expected_includes_quote: |- Includes ' quote @@ -98,15 +83,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Make Makefile - run: | - cd makefile_escaping - cp prologue.mk Makefile - cat escaping_env_vars.mk >> Makefile - name: make test run: | cd makefile_escaping - diff <( echo "$expected" ) <( test_var="Quote ' "'and variable ${reference}' make test ) + diff <( echo "$expected" ) <( test_var="Quote ' "'and variable ${reference}' make -f escaping_env_vars.mk test ) env: expected: |- Quote ' and variable ${reference} |