-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GitHub Action setup * Undo variable substitution that got into ".in" * Add message to assertion to debug failing tests * Run unit tests in isolation to avoid side-effects * Don't compare unstable highlighting of Pygments, but only the file locations
- Loading branch information
Showing
6 changed files
with
90 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "bashdb CI" | ||
on: | ||
push: | ||
|
||
jobs: | ||
linux: | ||
name: "Linux" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Packages | ||
shell: bash | ||
run: |+ | ||
sudo apt -y update | ||
sudo apt -y install autoconf automake texinfo | ||
- name: Configure | ||
shell: bash | ||
run: sh ./autogen.sh | ||
|
||
- name: Test | ||
shell: bash | ||
env: | ||
VERBOSE: 1 | ||
run: make -e -j3 check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/*~ | ||
/*.trs | ||
/*.log | ||
/Makefile | ||
/Makefile.in | ||
/require_me.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,52 @@ | ||
## Process this file with automake to produce Makefile.in -*-Makefile-*-. | ||
COMBINED_TESTS = $(wildcard test-*.sh) | ||
tests_sources = $(notdir $(COMBINED_TESTS:=.in)) | ||
|
||
# Don't forget to add the *.in files of new tests to configure.ac in the root folder | ||
TESTS = test-action.sh \ | ||
test-alias.sh \ | ||
test-bashdb-trace.sh \ | ||
test-break.sh \ | ||
test-cmd-complete.sh \ | ||
test-cmd-eval.sh \ | ||
test-cmd-info-variables.sh \ | ||
test-columns.sh \ | ||
test-filecache.sh \ | ||
test-file.sh \ | ||
test-fns.sh \ | ||
test-frame.sh \ | ||
test-get-sourceline.sh \ | ||
test-io.sh \ | ||
test-lib-eval.sh \ | ||
test-lib-list.sh \ | ||
test-logging.sh \ | ||
test-msg.sh \ | ||
test-pre.sh \ | ||
test-require.sh \ | ||
test-run.sh \ | ||
test-save-restore.sh \ | ||
test-sort.sh \ | ||
test-validate.sh | ||
|
||
tests_sources = $(notdir $(TESTS:=.in)) | ||
|
||
abs_srcdir=@abs_srcdir@ | ||
abs_builddir=@abs_builddir@ | ||
|
||
TESTS_ENVIRONMENT = \ | ||
srcdir="$(abs_srcdir)" \ | ||
builddir="$(abs_builddir)" | ||
AM_TESTS_ENVIRONMENT = \ | ||
srcdir="$(abs_srcdir)"; \ | ||
builddir="$(abs_builddir)"; \ | ||
export srcdir builddir; | ||
LOG_COMPILER = $(SH_PROG) | ||
AM_LOG_FLAGS = $(abs_srcdir)/shunit2 \ | ||
$(abs_srcdir)/helper.sh $(abs_srcdir)/mock-cmd.sh \ | ||
$(abs_srcdir)/require_me.sh | ||
|
||
EXTRA_DIST = \ | ||
helper.sh \ | ||
mock-cmd.sh \ | ||
require_me.sh \ | ||
require_me.sh.in $(COMBINED_TESTS) shunit2 $(tests_sources) | ||
require_me.sh.in $(TESTS) shunit2 $(tests_sources) | ||
|
||
test: check | ||
test-unit: check | ||
|
||
check: $(COMBINED_TESTS) | ||
$(SH_PROG) $(abs_srcdir)/shunit2 \ | ||
$(abs_srcdir)/helper.sh $(abs_srcdir)/mock-cmd.sh \ | ||
$(abs_srcdir)/require_me.sh \ | ||
$(COMBINED_TESTS) | ||
|
||
MOSTLYCLEANFILES = *.orig *.rej |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters