ctags: ensure that binary has correct featureset (#60084)

This commit is contained in:
Will Dollman 2024-02-05 09:39:06 +00:00 committed by GitHub
parent 5db45a0111
commit 29338b0e50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 6 deletions

View File

@ -15,6 +15,11 @@ commandTests:
envVars:
- key: "SANITY_CHECK"
value: "true"
- name: "ctags has correct features"
command: "universal-ctags"
args:
- --list-features
expectedOutput: ["interactive", "json"]
# TODO(security): This container should not be running as root
# - name: "not running as root"
@ -31,6 +36,3 @@ fileExistenceTests:
uid: 100
gid: 101
permissions: 'drwxr-xr-x'
- name: 'jansson package'
path: 'usr/lib/libjansson.so.4'
shouldExist: true

View File

@ -18,10 +18,16 @@ commandTests:
command: "git"
args:
- version
- name: "ctags is runnable"
command: "universal-ctags"
args:
- --version
- name: "ctags has correct features"
command: "universal-ctags"
args:
- "--list-features"
expectedOutput: ["interactive", "json"]
- name: "not running as root"
command: "/usr/bin/id"
@ -44,9 +50,6 @@ fileExistenceTests:
uid: 100
gid: 101
permissions: 'drwxr-xr-x'
- name: 'jansson package'
path: 'usr/lib/libjansson.so.4'
shouldExist: true
metadataTest:
envVars: