user136404: I'm getting acquainted with the functional testing suite in an attempt to become a bitcoin core developer.
I'm attempting to run a single test with this command.
python feature_shutdown.py
I receive an error such as this. In this error I notice a directory not being created.
'@abs_top_builddir@/src/bitcoind@EXEEXT@'
Is this behavior familiar to anyone? It seems like the string isn't being interpolated correctly.
2022-09-01T03:01:04.768000Z TestFramework (ERROR): Unexpected exception caught during testing
Traceback (most recent call last):
  File "/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py", line 132, in main
    self.setup()
  File "/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py", line 295, in setup
    self.setup_network()
  File "/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py", line 389, in setup_network
    self.setup_nodes()
  File "/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py", line 414, in setup_nodes
    self.start_nodes()
  File "/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py", line 547, in start_nodes
    node.start(extra_args[i], *args, **kwargs)
  File "/Users/user/git/bitcoin/test/functional/test_framework/test_node.py", line 211, in start
    self.process = subprocess.Popen(self.args + extra_args, env=subp_env, stdout=stdout, stderr=stderr, cwd=cwd, **kwargs)
  File "/Users/user/opt/anaconda3/envs/bitcoin/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/Users/user/opt/anaconda3/envs/bitcoin/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '@abs_top_builddir@/src/bitcoind@EXEEXT@': '@abs_top_builddir@/src/bitcoind@EXEEXT@'
2022-09-01T03:01:04.825000Z TestFramework (INFO): Stopping nodes
2022-09-01T03:01:04.825000Z TestFramework (WARNING): Not cleaning up dir /var/folders/cj/1w9q8rc55v99_ynzxz46c3dr0000gn/T/bitcoin_func_test_2u9b62xc
2022-09-01T03:01:04.825000Z TestFramework (ERROR): Test failed. Test logging available at /var/folders/cj/1w9q8rc55v99_ynzxz46c3dr0000gn/T/bitcoin_func_test_2u9b62xc/test_framework.log
2022-09-01T03:01:04.826000Z TestFramework (ERROR): 
2022-09-01T03:01:04.826000Z TestFramework (ERROR): Hint: Call /Users/user/git/bitcoin/test/functional/combine_logs.py '/var/folders/cj/1w9q8rc55v99_ynzxz46c3dr0000gn/T/bitcoin_func_test_2u9b62xc' to consolidate all logs
2022-09-01T03:01:04.826000Z TestFramework (ERROR): 
2022-09-01T03:01:04.826000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2022-09-01T03:01:04.826000Z TestFramework (ERROR): @PACKAGE_BUGREPORT@
2022-09-01T03:01:04.826000Z TestFramework (ERROR): ```

Thank you for your time.



user129640: In your test/ folder, you should have a config.ini and config.ini.in file. Your config.ini should look something like:
BUILDDIR=/Users/username/code/bitcoin
EXEEXT=

whereas according to the log message it might rather be:
BUILDDIR=@abs_top_builddir@
EXEEXT=@EXEEXT@

If that's the case, probably something went wrong with the configuration process. The easiest potential fix would be to rerun ./configure and see if that resolves it?

136404: <p>I'm getting acquainted with the functional testing suite in an attempt to become a bitcoin core developer.</p>
<p>I'm attempting to run a single test with this command.</p>
<p><code>python feature_shutdown.py</code></p>
<p>I receive an error such as this. In this error I notice a directory not being created.
<strong>'@abs_top_builddir@/src/bitcoind@EXEEXT@'</strong></p>
<p>Is this behavior familiar to anyone? It seems like the string isn't being interpolated correctly.</p>
<pre><code>2022-09-01T03:01:04.768000Z TestFramework (ERROR): Unexpected exception caught during testing
Traceback (most recent call last):
  File &quot;/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py&quot;, line 132, in main
    self.setup()
  File &quot;/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py&quot;, line 295, in setup
    self.setup_network()
  File &quot;/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py&quot;, line 389, in setup_network
    self.setup_nodes()
  File &quot;/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py&quot;, line 414, in setup_nodes
    self.start_nodes()
  File &quot;/Users/user/git/bitcoin/test/functional/test_framework/test_framework.py&quot;, line 547, in start_nodes
    node.start(extra_args[i], *args, **kwargs)
  File &quot;/Users/user/git/bitcoin/test/functional/test_framework/test_node.py&quot;, line 211, in start
    self.process = subprocess.Popen(self.args + extra_args, env=subp_env, stdout=stdout, stderr=stderr, cwd=cwd, **kwargs)
  File &quot;/Users/user/opt/anaconda3/envs/bitcoin/lib/python3.6/subprocess.py&quot;, line 729, in __init__
    restore_signals, start_new_session)
  File &quot;/Users/user/opt/anaconda3/envs/bitcoin/lib/python3.6/subprocess.py&quot;, line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '@abs_top_builddir@/src/bitcoind@EXEEXT@': '@abs_top_builddir@/src/bitcoind@EXEEXT@'
2022-09-01T03:01:04.825000Z TestFramework (INFO): Stopping nodes
2022-09-01T03:01:04.825000Z TestFramework (WARNING): Not cleaning up dir /var/folders/cj/1w9q8rc55v99_ynzxz46c3dr0000gn/T/bitcoin_func_test_2u9b62xc
2022-09-01T03:01:04.825000Z TestFramework (ERROR): Test failed. Test logging available at /var/folders/cj/1w9q8rc55v99_ynzxz46c3dr0000gn/T/bitcoin_func_test_2u9b62xc/test_framework.log
2022-09-01T03:01:04.826000Z TestFramework (ERROR): 
2022-09-01T03:01:04.826000Z TestFramework (ERROR): Hint: Call /Users/user/git/bitcoin/test/functional/combine_logs.py '/var/folders/cj/1w9q8rc55v99_ynzxz46c3dr0000gn/T/bitcoin_func_test_2u9b62xc' to consolidate all logs
2022-09-01T03:01:04.826000Z TestFramework (ERROR): 
2022-09-01T03:01:04.826000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2022-09-01T03:01:04.826000Z TestFramework (ERROR): @PACKAGE_BUGREPORT@
2022-09-01T03:01:04.826000Z TestFramework (ERROR): ```

Thank you for your time.

</code></pre>
 129640: <p>In your <code>test/</code> folder, you should have a <code>config.ini</code> and <code>config.ini.in</code> file. Your <code>config.ini</code> should look something like:</p>
<pre><code>BUILDDIR=/Users/username/code/bitcoin
EXEEXT=
</code></pre>
<p>whereas according to the log message it might rather be:</p>
<pre><code>BUILDDIR=@abs_top_builddir@
EXEEXT=@EXEEXT@
</code></pre>
<p>If that's the case, probably something went wrong with the configuration process. The easiest potential fix would be to rerun <code>./configure</code> and see if that resolves it?</p>
