package-notes/tests/simple-rpm/runtest.sh

11 lines
379 B
Bash
Raw Normal View History

2022-02-22 23:51:08 +00:00
#!/bin/bash
set -ex
dnf -y build-dep test.spec
rpmbuild --define '_sourcedir .' --define '_builddir .' -bb test.spec
dnf -y build-dep test.spec -D "_with_ld_lld 1"
rpmbuild --with ld_lld --define '_sourcedir .' --define '_builddir .' -bb test.spec
2022-08-29 13:20:25 +00:00
dnf -y build-dep test.spec -D "_with_clang 1"
rpmbuild --with clang --define '_sourcedir .' --define '_builddir .' -bb test.spec