abinit/bindings/quicktest.sh

39 lines
867 B
Bash
Executable File

#!/bin/sh
#
# Copyright (C) 2014-2024 ABINIT group (Yann Pouillon)
#
# This file is part of the Abinit Bindings software package. For license
# information, please see the COPYING file in the top-level directory of
# the source distribution.
#
#
# IMPORTANT NOTE:
#
# For maintainer use only!
#
# PLEASE DO NOT EDIT THIS FILE, AS IT COULD CAUSE A SERIOUS LOSS OF DATA.
# *** YOU HAVE BEEN WARNED! ***
#
# Check that we are in the right directory
if test ! -s "./configure.ac" -o ! -s "config/specs/bindings.conf"; then
echo "[quicktest] Cowardly refusing to run from here!" >&2
exit 1
fi
# Perform a full normal clean-build cycle
./wipeout.sh && \
./autogen.sh && \
mkdir tmp && \
cd tmp && \
../configure && \
make distcheck && \
make install DESTDIR=${PWD}/install
ret1="${?}"
cd ..
echo ""
echo "TEST #01: Normal build - Exit code: ${ret1}"
echo ""