Skip to content

Commit

Permalink
enable check by default
Browse files Browse the repository at this point in the history
  • Loading branch information
aakropotkin committed Jan 1, 2024
1 parent 5337456 commit a558814
Show file tree
Hide file tree
Showing 5 changed files with 229 additions and 37 deletions.
3 changes: 2 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, autoreconfHook, jq, bats }: let
{ stdenv, lib, autoreconfHook, jq, bats, doCheck ? true }: let
batsWith = bats.withLibraries (p: [
p.bats-assert
p.bats-file
Expand All @@ -10,5 +10,6 @@ in stdenv.mkDerivation {
version = "0.1.0";
nativeBuildInputs = [autoreconfHook batsWith];
buildInputs = [jq];
inherit doCheck;
meta.license = lib.licenses.gpl3;
}
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# ---------------------------------------------------------------------------- #

ACLOCAL_AMFLAGS = -I m4
ACLOCAL_AMFLAGS = -I ../m4

SUBDIRS = ccjs

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I m4
ACLOCAL_AMFLAGS = -I ../m4
SUBDIRS = ccjs
all: all-recursive

Expand Down
8 changes: 8 additions & 0 deletions src/ccjs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
#
# ---------------------------------------------------------------------------- #

ACLOCAL_AMFLAGS = -I ../../m4

SUBDIRS =


# ---------------------------------------------------------------------------- #

bin_SCRIPTS = ccjs ccjs-wrap ccjs_add ccjs_remove


# ---------------------------------------------------------------------------- #

# TODO: `AC_PATH_PROGS' in `configure.ac'
BATS ?= bats
BATSFLAGS ?= --print-output-on-failure --verbose-run --timing
BATS_TESTS ?= ./tests
Expand Down
Loading

0 comments on commit a558814

Please sign in to comment.