Reorganize tests

* tests/bash-without-bash.scm: Move this...
* tests/bootstrap/bash-without-bash.scm: ...here.
* tests/*.scm*: Move these...
* tests/unit: ...into this directory.
* configure.ac: Update paths.
* Makefile.am: Ditto.
* .gitignore: Ditto.
This commit is contained in:
Timothy Sample 2018-12-12 14:23:09 -05:00
parent b67fdc6fbf
commit 110167674e
11 changed files with 23 additions and 21 deletions

4
.gitignore vendored
View File

@ -14,8 +14,8 @@ coverage/*
lcov.info lcov.info
pre-inst-env pre-inst-env
scripts/geesh scripts/geesh
tests/*.trs tests/unit/*.trs
tests/config.scm tests/unit/config.scm
tests/spec/oil tests/spec/oil
tests/spec/oil-link tests/spec/oil-link
tools/coverage tools/coverage

View File

@ -42,7 +42,7 @@ check-spec:
.PHONY: check-bootstrap .PHONY: check-bootstrap
check-bootstrap: check-bootstrap:
guix build -f tests/bash-without-bash.scm guix build -f tests/bootstrap/bash-without-bash.scm
dist-hook: dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version echo $(VERSION) > $(distdir)/.tarball-version
@ -92,12 +92,14 @@ scripts/geesh: scripts/geesh.in Makefile
$(do_subst) < $(srcdir)/scripts/geesh.in > scripts/geesh $(do_subst) < $(srcdir)/scripts/geesh.in > scripts/geesh
chmod a+x scripts/geesh chmod a+x scripts/geesh
TESTS = \ UNIT_TESTS = \
tests/lexer.scm \ tests/unit/lexer.scm \
tests/parser.scm \ tests/unit/parser.scm \
tests/pattern.scm \ tests/unit/pattern.scm \
tests/shell.scm \ tests/unit/shell.scm \
tests/word.scm tests/unit/word.scm
TESTS = $(UNIT_TESTS)
EXTRA_DIST = \ EXTRA_DIST = \
scripts/geesh.in scripts/geesh.in
@ -105,8 +107,8 @@ EXTRA_DIST = \
CLEANFILES = \ CLEANFILES = \
$(GOBJECTS) \ $(GOBJECTS) \
$(bin_SCRIPTS) \ $(bin_SCRIPTS) \
$(TESTS:tests/%.scm=%.log) \ $(TESTS:tests/unit/%.scm=%.log) \
$(TESTS:tests/%.scm=%.trs) $(TESTS:tests/unit/%.scm=%.trs)
clean-local: clean-local:
$(MAKE) $(AM_MAKEFLAGS) -L -C tests/spec clean $(MAKE) $(AM_MAKEFLAGS) -L -C tests/spec clean

View File

@ -13,7 +13,7 @@ AM_CONDITIONAL([HAVE_GENHTML], [test -n $GENHTML])
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
AC_CONFIG_FILES([tests/config.scm]) AC_CONFIG_FILES([tests/unit/config.scm])
AC_CONFIG_FILES([tests/spec/Makefile]) AC_CONFIG_FILES([tests/spec/Makefile])
AC_CONFIG_FILES([tools/coverage], [chmod +x tools/coverage]) AC_CONFIG_FILES([tools/coverage], [chmod +x tools/coverage])

View File

@ -6,7 +6,7 @@
(ice-9 match)) (ice-9 match))
(define geesh (define geesh
(load (string-append (current-source-directory) "/../guix.scm"))) (load (string-append (current-source-directory) "/../../guix.scm")))
(define geesh-with-links (define geesh-with-links
(package (package

View File

@ -16,7 +16,7 @@
;;; You should have received a copy of the GNU General Public License ;;; You should have received a copy of the GNU General Public License
;;; along with Geesh. If not, see <http://www.gnu.org/licenses/>. ;;; along with Geesh. If not, see <http://www.gnu.org/licenses/>.
(define-module (tests automake) (define-module (tests unit automake)
#:use-module (srfi srfi-64)) #:use-module (srfi srfi-64))
;;; Commentary: ;;; Commentary:

View File

@ -1,4 +1,4 @@
(define-module (tests config) (define-module (tests unit config)
#:export (*guile-path*)) #:export (*guile-path*))
(define *guile-path* "@GUILE@") (define *guile-path* "@GUILE@")

View File

@ -21,7 +21,7 @@
#:use-module (ice-9 match) #:use-module (ice-9 match)
#:use-module (srfi srfi-64) #:use-module (srfi srfi-64)
#:use-module (system base lalr) #:use-module (system base lalr)
#:use-module (tests automake)) #:use-module (tests unit automake))
;;; Commentary: ;;; Commentary:
;;; ;;;

View File

@ -19,7 +19,7 @@
(define-module (test-parser) (define-module (test-parser)
#:use-module (geesh parser) #:use-module (geesh parser)
#:use-module (srfi srfi-64) #:use-module (srfi srfi-64)
#:use-module (tests automake)) #:use-module (tests unit automake))
;;; Commentary: ;;; Commentary:
;;; ;;;

View File

@ -19,7 +19,7 @@
(define-module (test-pattern) (define-module (test-pattern)
#:use-module (geesh pattern) #:use-module (geesh pattern)
#:use-module (srfi srfi-64) #:use-module (srfi srfi-64)
#:use-module (tests automake)) #:use-module (tests unit automake))
;;; Commentary: ;;; Commentary:
;;; ;;;

View File

@ -23,8 +23,8 @@
#:use-module (ice-9 match) #:use-module (ice-9 match)
#:use-module (ice-9 textual-ports) #:use-module (ice-9 textual-ports)
#:use-module (srfi srfi-64) #:use-module (srfi srfi-64)
#:use-module (tests automake) #:use-module (tests unit automake)
#:use-module (tests config)) #:use-module (tests unit config))
;;; Commentary: ;;; Commentary:
;;; ;;;

View File

@ -20,7 +20,7 @@
#:use-module (geesh environment) #:use-module (geesh environment)
#:use-module (geesh word) #:use-module (geesh word)
#:use-module (srfi srfi-64) #:use-module (srfi srfi-64)
#:use-module (tests automake)) #:use-module (tests unit automake))
;;; Commentary: ;;; Commentary:
;;; ;;;