test: Add subdirectory with integration tests #35

Merged
Jan Lindemann merged 4 commits from jan/feature/20260625-add-subdirectory-with-integration-test into master 2026-06-25 15:09:08 +02:00 AGit

This pull request introduces two integration tests, or - more notably - a first draft for a location where to put future tests.

rules.mk: Remove debug $(info) for EXE_SH

The debug line "$(info EXE_SH=>$(EXE_SH)<)" was left in during development. Remove it.

profile|std-targets.mk: Add empty test target

Recursive make fails in scripts/usr-bin when driven through jw-pkg. Add empty test targets to remedy that.

test-jw-pkg.mk: Add file

Add include file to provide some definitions for a first integration test suite. It provides the shared make variables, most notably TEST_CMD_LINE as handy default for running jw-pkg.py.

test: Add subdirectory with integration test

Add a test/integration subdirectory as a location for integration tests. The first tests that are added are unproblematic in that they don't need superuser privileges to run:

  • help: Recursively check if jw-pkg.py's help messages are unchanged

  • packages ls: Check if the bash package exists and contains

    /usr/bin/bash
    /usr/bin/bashbug
This pull request introduces two integration tests, or - more notably - a first draft for a location where to put future tests. #### rules.mk: Remove debug $(info) for EXE_SH The debug line "$(info EXE_SH=>$(EXE_SH)<)" was left in during development. Remove it. #### profile|std-targets.mk: Add empty test target Recursive make fails in scripts/usr-bin when driven through jw-pkg. Add empty test targets to remedy that. #### test-jw-pkg.mk: Add file Add include file to provide some definitions for a first integration test suite. It provides the shared make variables, most notably TEST_CMD_LINE as handy default for running jw-pkg.py. #### test: Add subdirectory with integration test Add a test/integration subdirectory as a location for integration tests. The first tests that are added are unproblematic in that they don't need superuser privileges to run: - help: Recursively check if jw-pkg.py's help messages are unchanged - packages ls: Check if the bash package exists and contains ``` /usr/bin/bash /usr/bin/bashbug ```

The debug line "$(info EXE_SH=>$(EXE_SH)<)" was left in during development. Remove it.

Signed-off-by: Jan Lindemann <jan@janware.com>

Recursive make fails in scripts/usr-bin when driven through jw-pkg. Add empty test targets to remedy that.

Signed-off-by: Jan Lindemann <jan@janware.com>

Add include file to provide some definitions for a first integration test suite. It provides the shared make variables, most notably TEST_CMD_LINE as handy default for running jw-pkg.py.

Signed-off-by: Jan Lindemann <jan@janware.com>
test: Add subdirectory with integration test
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 3m38s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 3m39s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m21s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m32s
CI / Packaging test (push) Successful in 0s
efc5bc1c60

Add a test/integration subdirectory as a location for integration tests. The first tests that are added are unproblematic in that they don't need superuser privileges to run:

- help: Recursively check if jw-pkg.py's help messages are unchanged

- packages ls: Check if the bash package exists and contains

/usr/bin/bash /usr/bin/bashbug

Let's see how that fares in CI.

Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-06-25 15:01:45 +02:00
Jan Lindemann changed title from Add subdirectory with integration test to test: Add subdirectory with integration test 2026-06-25 15:03:40 +02:00
Jan Lindemann changed title from test: Add subdirectory with integration test to test: Add subdirectory with integration tests 2026-06-25 19:03:31 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janware/jw-pkg!35
No description provided.