South Africa all out 332